﻿import QtQuick 2.0
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.12
import "../components"

Item {

    // 背景偏差
    id: root
    anchors.fill: parent
    Connections{  // qmlre
        target: MACO
        onBjpcread:{
            tab.setAllData(bjval)
        }
    }

    Row{
        spacing: 15*dp
        x: parent.width - 525*dp
        PushButton{
            title: "写入"
            defaultMode1: true
            onReleased: {
                MACO.bjbc(tab.getAllData())
            }
        }PushButton{
            title: "读取"
            defaultMode1: true
            onReleased: {
                MACO.bjdq()
            }
        }PushButton{
            title: "导入"
            defaultMode1: true
            onReleased: {
            }
        }PushButton{
            title: "导出"
            defaultMode1: true
            onReleased: {
            }
        }
    }

    ScrollView{
        y: 60*dp
        height: 460*dp
        width: parent.width
        clip: true
        Row{
            height: 460*dp
            spacing: 2
            Item{
                width: 4600*dp
                height: parent.height
                GridTable{
                    id : tab
                    columnCount: 48
                    rowCount: 8
                    title: ["1孔通道一","1孔通道二","1孔通道三","1孔通道四","2孔通道一","2孔通道二","2孔通道三","2孔通道四","3孔通道一","3孔通道二","3孔通道三","3孔通道四","4孔通道一","4孔通道二","4孔通道三","4孔通道四","5孔通道一","5孔通道二","5孔通道三","5孔通道四","6孔通道一","6孔通道二","6孔通道三","6孔通道四","7孔通道一","7孔通道二","7孔通道三","7孔通道四","8孔通道一","8孔通道二","8孔通道三","8孔通道四","9孔通道一","9孔通道二","9孔通道三","9孔通道四","10孔通道一","10孔通道二","10孔通道三","10孔通道四","11孔通道一","11孔通道二","11孔通道三","11孔通道四","12孔通道一","12孔通道二","12孔通道三","12孔通道四"]
                    title2: ["", "A", "B", "C", "D", "E", "F", "G", "H"]
                }
            }
            Item{
                width: 10 *dp
                height: 10 *dp
            }
        }
    }




}
